Complete sample code to send an email:
var client = new PayliteMessaging.Client.MessagingClient();
var email = new Email();
email.ApiKey = "Your API Key";
email.FromEmail = new EmailAddress("From Email Address", "From Name");
email.ToEmail = new List<EmailAddress>
{
new EmailAddress("To Email Address", "To Name")
};
email.CcEmail = new List<EmailAddress>
{
new EmailAddress("CC Email Address", "CC Name")
};
email.BccEmail = new List<EmailAddress>
{
new EmailAddress("Bcc Email Address", "Bcc Name")
};
email.Subject = "Email Subject";
email.HtmlContent = "Email HTML Content";
var response = client.SendEmail(email);